# Copyright (c) 2007 Fabio Makoto Akita
# 
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# 
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Author: AkitaOnRails (www.akitaonrails.com)
# Support: Surgeworks LLC (www.surgeworks.com)

#
# WARNING: DO NOT EDIT THIS FILE MANUALLY - IT IS AUTOMATICALLY GENERATED BY THE PLUGIN
#

# This module represents all operations done at both the client and server ends.
# Here follows the basic workflow covered by this set of modules. All of the
# modules declared here are used in the SyncsController only
#
# Client:
# 1  - perform_sync
# 2  - handshake_authenticate
# 4  - handshake_response
# 7  - do_get_server_data
# 9  - Replica.up
# 10 - do_send_client_data
# 11 - Replica.down
#
# Server:
# 3  - handshake(GET)
# 5  - handshake(POST)
# 6  - handshake_response
# 8  - down.yaml(GET)
# 12 - up.yaml(POST)

require 'zlib'
require 'syncs_helper/client_actions'
require 'syncs_helper/server_actions'
require 'syncs_helper/handshake'
require 'syncs_helper/request'
require 'syncs_helper/net_support'
require 'syncs_helper/misc'
require 'syncs_helper/processes'

module SyncsHelper
  WIN_SVN_PATH  = File.join(Dir.pwd, '..', 'svn', 'bin', 'svn.exe')    rescue nil
  WIN_RUBY_PATH = File.join(Dir.pwd, '..', 'ruby', 'bin', 'rubyw.exe') rescue nil
  WIN_RAKE_PATH = File.join(Dir.pwd, '..', 'ruby', 'bin', 'rake')      rescue nil
  
  include SyncsHelper::ClientActions
  include SyncsHelper::ServerActions
  include SyncsHelper::Handshake
  include SyncsHelper::Request
  include SyncsHelper::NetSupport
  include SyncsHelper::Misc
  include SyncsHelper::Processes
end